package com.Book.test_1_25_springmvcbook.Service;

import com.Book.test_1_25_springmvcbook.mapper.UserInfoMapper;
import com.Book.test_1_25_springmvcbook.model.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Autowired
     private UserInfoMapper userInfoMapper;
    public UserInfo getUserInfoByName(String name){
        return userInfoMapper.selectUserByName(name);
    }
}
